package org.jypj.dev.controller;

import org.jypj.dev.util.DateUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ChenYu on 2017-07-14.
 */
@Controller
@RequestMapping("historyController")
public class HistoryController {

    /**
     * 历史查询页面
     * @param request
     * @return
     */
    @RequestMapping(value = "toHistoryList.action")
    public String toHistoryList(HttpServletRequest request) {
        String todayString = DateUtils.getTodayString("yyyy-MM-dd");
        String tomorrowString = DateUtils.getTomorrowString("yyyy-MM-dd");
        request.setAttribute("today", todayString);
        request.setAttribute("tomorrow", tomorrowString);
        return "back/bus/index_history_main";
    }
}
